package com.hqq.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class myController {

    @RequestMapping(value = "/some.do")
    public ModelAndView doSome(){
        //ToDo:调用实际service
        //进行结果返回
        ModelAndView mv = new ModelAndView();
        //添加数据
        mv.addObject("msg","欢迎第一次尝试springMvc");
        //指定视图
        //mv.setViewName("/WEB-INF/view/show.jsp");
        mv.setViewName("show");//借助视图解析器

        return mv;





    }
}
